package cz.khfotbal.service;

import java.util.List;

import cz.khfotbal.domain.Competion;
import cz.khfotbal.domain.Delegat;
import cz.khfotbal.domain.Match;
import cz.khfotbal.domain.Referee;
import cz.khfotbal.domain.Season;
import cz.khfotbal.domain.Team;

public interface MatchService {

	List<Match> getMatchesBySeasonAndCompetion(Season season, Competion cmpetion);

	void createMatch(Team homeTeam, Team awayTeam, Competion selectedCompetion,
			Season selectedSeason, Match match);

	void setDelegateToMatch(Delegat delegat, Match match);

	void setRefereeToMatch(Referee main, Match selectedMatch);

	void deleteRefereesFromMatch(Match match);

	void delete(Match selectedMatch);

	void updateMatch(Match selectedMatch);

	List<Match> getMatchesByDate(String date);

	List<Match> getMatchesByTeamAndSeason(Season season, Team team);
	
	Match getMatchById(int id);

}
